package top.korori.sv.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import top.korori.sv.entity.SvUserArea;

import java.time.LocalDate;
import java.util.List;

@ApiModel("要修改的用户信息")
@Getter
@Setter
public class SvEditUserInfoVo {

    @ApiModelProperty("用户id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("性别(0未设置 1男 2女 3保密)")
    private Integer sex;

    @ApiModelProperty("出生日期")
    private LocalDate birthday;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("星座")
    private String zodiac;

    @ApiModelProperty("简介")
    @TableField("`desc`")
    private String desc;

    @ApiModelProperty("所在地关联地址id")
    private String localId;

    @ApiModelProperty("所在地址")
    private List<SvUserArea> localArea;

}
